import { Component } from 'react'
import { View, Text, Button, Image } from '@tarojs/components'
import './index.less'
import Head from '../head/head'
import Food from '../head/food'
import 'taro-ui/dist/style/index.scss'
import Bottom from '../head/bottom'

export default class Index extends Component {

  componentWillMount () { }

  //一般用在进入页面后，数据初始化，只要进入页面就会去执行  在组件挂载后（插入 DOM 树中）立即调用
  componentDidMount () { }

  //在组件卸载及销毁之前直接调用。
  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    return (
      <View className='index'>
        <Head/>
       <Food/>
       <Bottom/>
      </View>
    )
  }
}
